import request from '@/utils/request'

export default {
  winningList(params) {
    return request({
      url: '/v1/winningList',
      method: 'get',
      params
    })
  },
  detail(id) {
    return request({
      url: `/v1/winning/${id}`,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: `/v1/winningAdd`,
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: `/v1/winningUpdate`,
      method: 'post',
      data
    })
  },
  delete(data){
    return request( {
      url: `/v1/winningDel`,
      method:'post',
      data
    })
  }
}
